<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>HTTP::Request - HTTP style request message - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of HTTP-Message - MetaCPAN" href="https://metacpan.org/dist/HTTP-Message/releases.rss" />
        <link rel="canonical" href="./HTTP::Request.html" />
        <meta name="description" content="HTTP style request message" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/HTTP::Request" />
<meta name="twitter:title"       content="HTTP::Request" />
<meta name="twitter:description" content="HTTP style request message" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="./HTTP::Request.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of HTTP-Message was released.">
      <span class="relatize">27 Sep 2023 14:31:38 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/HTTP-Message">HTTP-Message</a>
  </li>
  <li>
    Module version: 6.45
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/HTTP-Message/source/lib/HTTP/Request.pm">Source</a>
    (<a href="https://metacpan.org/dist/HTTP-Message/source/lib/HTTP/Request.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/HTTP-Message/source/lib/HTTP">Browse</a>
    (<a href="https://metacpan.org/dist/HTTP-Message/source/lib/HTTP?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/HTTP-Message/changes">Changes</a>
    </li>
    <li>
      <a rel="noopener nofollow" class="nopopup" href="https://github.com/libwww-perl/HTTP-Message">Homepage</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/HTTP-Message/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/libwww-perl/HTTP-Message">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://github.com/libwww-perl/HTTP-Message/issues">Issues</a>
      (56)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=HTTP-Message+6.45" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/H/HTTP-Message.html?oncpan=1&amp;distmat=1&amp;version=6.45&amp;grade=2" style="color: #090">1962</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/H/HTTP-Message.html?oncpan=1&amp;distmat=1&amp;version=6.45&amp;grade=3" style="color: #900">3</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/H/HTTP-Message.html?oncpan=1&amp;distmat=1&amp;version=6.45&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/OALDERS/HTTP-Message-6.45">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on HTTP-Message who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 7
      </div>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpancover.com/latest/HTTP-Message-6.45/index.html">95.54% Coverage </a>
    </li>
    <li>
      License: perl_5
    </li>
    <li>
      Perl: v5.8.1
    </li>
    <li class="chat-banner">
      <div><a rel="noopener nofollow" target="_blank" href="https://kiwiirc.com/nextclient/#irc://irc.perl.org/#lwp?nick=mc-guest-?">Chat with us!</a></div>
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/HTTP-Message/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/HTTP-Message-6.45.tar.gz">
      Download (<span itemprop="fileSize">93.31KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FOALDERS%2FHTTP-Message-6.45%2Flib%2FHTTP%2FRequest.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/HTTP-Message/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/HTTP-Message/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:HTTP-Message">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="HTTP-Message">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/HTTP/Request.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="OALDERS/HTTP-Message-6.45"
>6.45
  (OALDERS on 2023-09-27)</option>
<option
  
  value="OALDERS/HTTP-Message-6.44"
>6.44
  (OALDERS on 2022-10-26)</option>
<option
  
  value="SIMBABQUE/HTTP-Message-6.43"
>6.43
  (SIMBABQUE on 2022-10-22)</option>
<option
  
  value="OALDERS/HTTP-Message-6.42"
>6.42
  (OALDERS on 2022-10-18)</option>
<option
  
  value="OALDERS/HTTP-Message-6.41"
>6.41
  (OALDERS on 2022-10-12)</option>
<option
  
  value="OALDERS/HTTP-Message-6.40"
>6.40
  (OALDERS on 2022-10-12)</option>
<option
  
  value="SIMBABQUE/HTTP-Message-6.39"
>6.39
  (SIMBABQUE on 2022-10-08)</option>
<option
  
  value="OALDERS/HTTP-Message-6.38"
>6.38
  (OALDERS on 2022-10-06)</option>
<option
  
  value="OALDERS/HTTP-Message-6.37"
>6.37
  (OALDERS on 2022-06-14)</option>
<option
  
  value="OALDERS/HTTP-Message-6.36"
>6.36
  (OALDERS on 2022-01-05)</option>
<option
  
  value="OALDERS/HTTP-Message-6.35"
>6.35
  (OALDERS on 2021-11-11)</option>
<option
  
  value="OALDERS/HTTP-Message-6.34"
>6.34
  (OALDERS on 2021-11-08)</option>
<option
  
  value="OALDERS/HTTP-Message-6.33"
>6.33
  (OALDERS on 2021-06-28)</option>
<option
  
  value="OALDERS/HTTP-Message-6.32"
>6.32
  (OALDERS on 2021-05-18)</option>
<option
  
  value="OALDERS/HTTP-Message-6.31"
>6.31
  (OALDERS on 2021-05-11)</option>
<option
  
  value="OALDERS/HTTP-Message-6.30"
>6.30
  (OALDERS on 2021-05-10)</option>
<option
  
  value="OALDERS/HTTP-Message-6.29"
>6.29
  (OALDERS on 2021-03-06)</option>
<option
  
  value="OALDERS/HTTP-Message-6.28"
>6.28
  (OALDERS on 2021-02-19)</option>
<option
  
  value="OALDERS/HTTP-Message-6.27"
>6.27
  (OALDERS on 2021-01-05)</option>
<option
  
  value="OALDERS/HTTP-Message-6.26"
>6.26
  (OALDERS on 2020-09-10)</option>
<option
  
  value="ETHER/HTTP-Message-6.25"
>6.25
  (ETHER on 2020-06-28)</option>
<option
  
  value="OALDERS/HTTP-Message-6.24"
>6.24
  (OALDERS on 2020-05-11)</option>
<option
  
  value="OALDERS/HTTP-Message-6.23-TRIAL"
>6.23-TRIAL DEV
  (OALDERS on 2020-05-07)</option>
<option
  
  value="OALDERS/HTTP-Message-6.22"
>6.22
  (OALDERS on 2020-02-24)</option>
<option
  
  value="OALDERS/HTTP-Message-6.21-TRIAL"
>6.21-TRIAL DEV
  (OALDERS on 2020-02-19)</option>
<option
  
  value="OALDERS/HTTP-Message-6.20-TRIAL"
>6.20-TRIAL DEV
  (OALDERS on 2019-02-05)</option>
<option
  
  value="OALDERS/HTTP-Message-6.19-TRIAL"
>6.19-TRIAL DEV
  (OALDERS on 2019-01-16)</option>
<option
  
  value="OALDERS/HTTP-Message-6.18"
>6.18
  (OALDERS on 2018-06-05)</option>
<option
  
  value="OALDERS/HTTP-Message-6.16"
>6.16
  (OALDERS on 2018-03-28)</option>
<option
  
  value="OALDERS/HTTP-Message-6.15"
>6.15
  (OALDERS on 2018-03-13)</option>
<option
  
  value="OALDERS/HTTP-Message-6.14"
>6.14
  (OALDERS on 2017-12-20)</option>
<option
  
  value="OALDERS/HTTP-Message-6.13"
>6.13
  (OALDERS on 2017-06-20)</option>
<option
  
  value="OALDERS/HTTP-Message-6.12-TRIAL"
>6.12-TRIAL DEV
  (OALDERS on 2017-06-15)</option>
<option
  
  value="ETHER/HTTP-Message-6.11"
>6.11
  (ETHER on 2015-09-09)</option>
<option
  
  value="GAAS/HTTP-Message-6.06"
>6.06
  (GAAS on 2012-10-20)</option>
<optgroup label="BackPAN">'
<option
  
  value="OALDERS/HTTP-Message-6.17"
>6.17
  (OALDERS on 2018-06-05)</option>
<option
  
  value="ETHER/HTTP-Message-6.10"
>6.10
  (ETHER on 2015-07-19)</option>
<option
  
  value="ETHER/HTTP-Message-6.09"
>6.09
  (ETHER on 2015-07-19)</option>
<option
  
  value="ETHER/HTTP-Message-6.08"
>6.08
  (ETHER on 2015-07-10)</option>
<option
  
  value="ETHER/HTTP-Message-6.07"
>6.07
  (ETHER on 2015-07-09)</option>
<option
  
  value="GAAS/HTTP-Message-6.05"
>6.05
  (GAAS on 2012-10-20)</option>
<option
  
  value="GAAS/HTTP-Message-6.04"
>6.04
  (GAAS on 2012-09-30)</option>
<option
  
  value="GAAS/HTTP-Message-6.03"
>6.03
  (GAAS on 2012-02-16)</option>
<option
  
  value="GAAS/HTTP-Message-6.02"
>6.02
  (GAAS on 2011-03-20)</option>
<option
  
  value="GAAS/HTTP-Message-6.01"
>6.01
  (GAAS on 2011-03-07)</option>
<option
  
  value="GAAS/HTTP-Message-6.00"
>6.00
  (GAAS on 2011-02-27)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/OALDERS/HTTP-Message-6.45/diff/' + encodeURIComponent(this.value) + '/lib/HTTP/Request.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="OALDERS/HTTP-Message-6.45"
>6.45
  (OALDERS on 2023-09-27)</option>
<option
  
  value="OALDERS/HTTP-Message-6.44"
>6.44
  (OALDERS on 2022-10-26)</option>
<option
  
  value="SIMBABQUE/HTTP-Message-6.43"
>6.43
  (SIMBABQUE on 2022-10-22)</option>
<option
  
  value="OALDERS/HTTP-Message-6.42"
>6.42
  (OALDERS on 2022-10-18)</option>
<option
  
  value="OALDERS/HTTP-Message-6.41"
>6.41
  (OALDERS on 2022-10-12)</option>
<option
  
  value="OALDERS/HTTP-Message-6.40"
>6.40
  (OALDERS on 2022-10-12)</option>
<option
  
  value="SIMBABQUE/HTTP-Message-6.39"
>6.39
  (SIMBABQUE on 2022-10-08)</option>
<option
  
  value="OALDERS/HTTP-Message-6.38"
>6.38
  (OALDERS on 2022-10-06)</option>
<option
  
  value="OALDERS/HTTP-Message-6.37"
>6.37
  (OALDERS on 2022-06-14)</option>
<option
  
  value="OALDERS/HTTP-Message-6.36"
>6.36
  (OALDERS on 2022-01-05)</option>
<option
  
  value="OALDERS/HTTP-Message-6.35"
>6.35
  (OALDERS on 2021-11-11)</option>
<option
  
  value="OALDERS/HTTP-Message-6.34"
>6.34
  (OALDERS on 2021-11-08)</option>
<option
  
  value="OALDERS/HTTP-Message-6.33"
>6.33
  (OALDERS on 2021-06-28)</option>
<option
  
  value="OALDERS/HTTP-Message-6.32"
>6.32
  (OALDERS on 2021-05-18)</option>
<option
  
  value="OALDERS/HTTP-Message-6.31"
>6.31
  (OALDERS on 2021-05-11)</option>
<option
  
  value="OALDERS/HTTP-Message-6.30"
>6.30
  (OALDERS on 2021-05-10)</option>
<option
  
  value="OALDERS/HTTP-Message-6.29"
>6.29
  (OALDERS on 2021-03-06)</option>
<option
  
  value="OALDERS/HTTP-Message-6.28"
>6.28
  (OALDERS on 2021-02-19)</option>
<option
  
  value="OALDERS/HTTP-Message-6.27"
>6.27
  (OALDERS on 2021-01-05)</option>
<option
  
  value="OALDERS/HTTP-Message-6.26"
>6.26
  (OALDERS on 2020-09-10)</option>
<option
  
  value="ETHER/HTTP-Message-6.25"
>6.25
  (ETHER on 2020-06-28)</option>
<option
  
  value="OALDERS/HTTP-Message-6.24"
>6.24
  (OALDERS on 2020-05-11)</option>
<option
  
  value="OALDERS/HTTP-Message-6.23-TRIAL"
>6.23-TRIAL DEV
  (OALDERS on 2020-05-07)</option>
<option
  
  value="OALDERS/HTTP-Message-6.22"
>6.22
  (OALDERS on 2020-02-24)</option>
<option
  
  value="OALDERS/HTTP-Message-6.21-TRIAL"
>6.21-TRIAL DEV
  (OALDERS on 2020-02-19)</option>
<option
  
  value="OALDERS/HTTP-Message-6.20-TRIAL"
>6.20-TRIAL DEV
  (OALDERS on 2019-02-05)</option>
<option
  
  value="OALDERS/HTTP-Message-6.19-TRIAL"
>6.19-TRIAL DEV
  (OALDERS on 2019-01-16)</option>
<option
  
  value="OALDERS/HTTP-Message-6.18"
>6.18
  (OALDERS on 2018-06-05)</option>
<option
  
  value="OALDERS/HTTP-Message-6.16"
>6.16
  (OALDERS on 2018-03-28)</option>
<option
  
  value="OALDERS/HTTP-Message-6.15"
>6.15
  (OALDERS on 2018-03-13)</option>
<option
  
  value="OALDERS/HTTP-Message-6.14"
>6.14
  (OALDERS on 2017-12-20)</option>
<option
  
  value="OALDERS/HTTP-Message-6.13"
>6.13
  (OALDERS on 2017-06-20)</option>
<option
  
  value="OALDERS/HTTP-Message-6.12-TRIAL"
>6.12-TRIAL DEV
  (OALDERS on 2017-06-15)</option>
<option
  
  value="ETHER/HTTP-Message-6.11"
>6.11
  (ETHER on 2015-09-09)</option>
<option
  
  value="GAAS/HTTP-Message-6.06"
>6.06
  (GAAS on 2012-10-20)</option>
<optgroup label="BackPAN">'
<option
  
  value="OALDERS/HTTP-Message-6.17"
>6.17
  (OALDERS on 2018-06-05)</option>
<option
  
  value="ETHER/HTTP-Message-6.10"
>6.10
  (ETHER on 2015-07-19)</option>
<option
  
  value="ETHER/HTTP-Message-6.09"
>6.09
  (ETHER on 2015-07-19)</option>
<option
  
  value="ETHER/HTTP-Message-6.08"
>6.08
  (ETHER on 2015-07-10)</option>
<option
  
  value="ETHER/HTTP-Message-6.07"
>6.07
  (ETHER on 2015-07-09)</option>
<option
  
  value="GAAS/HTTP-Message-6.05"
>6.05
  (GAAS on 2012-10-20)</option>
<option
  
  value="GAAS/HTTP-Message-6.04"
>6.04
  (GAAS on 2012-09-30)</option>
<option
  
  value="GAAS/HTTP-Message-6.03"
>6.03
  (GAAS on 2012-02-16)</option>
<option
  
  value="GAAS/HTTP-Message-6.02"
>6.02
  (GAAS on 2011-03-20)</option>
<option
  
  value="GAAS/HTTP-Message-6.01"
>6.01
  (GAAS on 2011-03-07)</option>
<option
  
  value="GAAS/HTTP-Message-6.00"
>6.00
  (GAAS on 2011-02-27)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="https://metacpan.org/pod/Carp" title="Carp" class="ellipsis">Carp</a></li>
  <li><a href="Clone.html" title="Clone" class="ellipsis">Clone</a></li>
  <li><a href="https://metacpan.org/pod/Compress::Raw::Bzip2" title="Compress::Raw::Bzip2" class="ellipsis">Compress::Raw::Bzip2</a></li>
  <li><a href="https://metacpan.org/pod/Compress::Raw::Zlib" title="Compress::Raw::Zlib" class="ellipsis">Compress::Raw::Zlib</a></li>
  <li><a href="https://metacpan.org/pod/Encode" title="Encode" class="ellipsis">Encode</a></li>
  <li><a href="./Encode::Locale.html" title="Encode::Locale" class="ellipsis">Encode::Locale</a></li>
  <li><a href="https://metacpan.org/pod/Exporter" title="Exporter" class="ellipsis">Exporter</a></li>
  <li><a href="https://metacpan.org/pod/File::Spec" title="File::Spec" class="ellipsis">File::Spec</a></li>
  <li><a href="https://metacpan.org/pod/HTTP::Date" title="HTTP::Date" class="ellipsis">HTTP::Date</a></li>
  <li><a href="https://metacpan.org/pod/IO::Compress::Bzip2" title="IO::Compress::Bzip2" class="ellipsis">IO::Compress::Bzip2</a></li>
  <li><a href="https://metacpan.org/pod/IO::Compress::Deflate" title="IO::Compress::Deflate" class="ellipsis">IO::Compress::Deflate</a></li>
  <li><a href="https://metacpan.org/pod/IO::Compress::Gzip" title="IO::Compress::Gzip" class="ellipsis">IO::Compress::Gzip</a></li>
  <li><a href="https://metacpan.org/pod/IO::HTML" title="IO::HTML" class="ellipsis">IO::HTML</a></li>
  <li><a href="https://metacpan.org/pod/IO::Uncompress::Inflate" title="IO::Uncompress::Inflate" class="ellipsis">IO::Uncompress::Inflate</a></li>
  <li><a href="https://metacpan.org/pod/IO::Uncompress::RawInflate" title="IO::Uncompress::RawInflate" class="ellipsis">IO::Uncompress::RawInflate</a></li>
  <li><a href="https://metacpan.org/pod/LWP::MediaTypes" title="LWP::MediaTypes" class="ellipsis">LWP::MediaTypes</a></li>
  <li><a href="https://metacpan.org/pod/MIME::Base64" title="MIME::Base64" class="ellipsis">MIME::Base64</a></li>
  <li><a href="https://metacpan.org/pod/MIME::QuotedPrint" title="MIME::QuotedPrint" class="ellipsis">MIME::QuotedPrint</a></li>
  <li><a href="URI.html" title="URI" class="ellipsis">URI</a></li>
  <li><a href="https://metacpan.org/pod/parent" title="parent" class="ellipsis">parent</a></li>
  <li><a href="https://metacpan.org/pod/strict" title="strict" class="ellipsis">strict</a></li>
  <li><a href="https://metacpan.org/pod/warnings" title="warnings" class="ellipsis">warnings</a></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/HTTP::Request/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=HTTP%3A%3ARequest">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=HTTP-Message">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/OALDERS/HTTP-Message-6.45/view/lib/HTTP/Request.pm">This version</a>
    </li>
    <li>
      <a href="./HTTP::Request.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/STEVAN"><img src="https://www.gravatar.com/avatar/cc55e2ce28bd4649215ef05b8704e9be?d=identicon&amp;s=20" title="STEVAN" alt="STEVAN"></a>
<a class="display-all" href="https://metacpan.org/author/JKUTEJ"><img src="https://www.gravatar.com/avatar/dd8704659cdd56fa6c4d1ba5b0909c69?d=identicon&amp;s=20" title="JKUTEJ" alt="JKUTEJ"></a>
<a class="display-all" href="https://metacpan.org/author/RWP"><img src="https://www.gravatar.com/avatar/7110eb2389e69a066d9d7cad7a1cc2bf?d=identicon&amp;s=20" title="RWP" alt="RWP"></a>
<a class="display-all" href="https://metacpan.org/author/ALEXPAN"><img src="https://www.gravatar.com/avatar/70e0ed15dcfbb2cf0e09fbb0d09c9bf8?d=identicon&amp;s=20" title="ALEXPAN" alt="ALEXPAN"></a>
<a class="display-all" href="https://metacpan.org/author/ELEMECCA"><img src="https://www.gravatar.com/avatar/2ef7fbc078d9e22e41d18d727d2b8671?d=identicon&amp;s=20" title="ELEMECCA" alt="ELEMECCA"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/HTTP-Message/plussers">39 PAUSE users</a>
</div>
<div>
    27 non-PAUSE users
</div>
</div>
    </li>
    <li>
<div id="metacpan_contributors">
  <div>
    <button class="btn-link"
      onclick="$(this).hide(); $('#metacpan_contributors ul').slideDown(); return false;"
    >and 89 contributors</button>
  </div>
  <ul style="display: none">
    <li class="contributor"
      data-contrib-email="gisle@activestate.com gisle@aas.no"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Gisle Aas
    </li>
    <li class="contributor"
      data-cpan-author="ADAMK"
      data-contrib-email="adamk@cpan.org"
    >
      <a href="https://metacpan.org/author/ADAMK" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/884124d0169f41668fb3f948b2ba8b0a?d=identicon&amp;s=20" />
      Adam Kennedy
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="asjo@koldfront.dk"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Adam Sjogren
    </li>
    <li class="contributor"
      data-contrib-email="at@altlinux.ru"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Alexey Tourbin
    </li>
    <li class="contributor"
      data-contrib-email="ka@nadoby.ru"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Alex Kapranoff
    </li>
    <li class="contributor"
      data-contrib-email="amir.aharoni@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      amire80
    </li>
    <li class="contributor"
      data-contrib-email="andreas.koenig@anima.de"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Andreas J. Koenig
    </li>
    <li class="contributor"
      data-contrib-email="andrei.grechkin@booking.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Andrei Grechkin
    </li>
    <li class="contributor"
      data-cpan-author="BAYASHI"
      data-contrib-email="bayashi@cpan.org"
    >
      <a href="https://metacpan.org/author/BAYASHI" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/dbc7caff684de7e946eae4aedf2a0f66?d=identicon&amp;s=20" />
      bayashi
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="wfmann@alum.mit.edu"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Bill Mann
    </li>
    <li class="contributor"
      data-contrib-email="GitHub@ResonatorSoft.org"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Brendan Byrd
    </li>
    <li class="contributor"
      data-contrib-email="brong@fastmail.fm"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Bron Gondwana
    </li>
    <li class="contributor"
      data-cpan-author="CAPOEIRAB"
      data-contrib-email="capoeirab@cpan.org"
    >
      <a href="https://metacpan.org/author/CAPOEIRAB" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/912bfa255ef8161a494932af0cad48c5?d=identicon&amp;s=20" />
      Chase Whitener
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="CJM"
      data-contrib-email="cjm@cpan.org"
    >
      <a href="https://metacpan.org/author/CJM" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/75ab2425a09e84ffc650a859523ac56a?d=identicon&amp;s=20" />
      Christopher J. Madsen
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="CHROMATIC"
      data-contrib-email="chromatic@wgz.org"
    >
      <a href="https://metacpan.org/author/CHROMATIC" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/2c517b2a26b5f95a8d2160737ae984fb?d=identicon&amp;s=20" />
      chromatic
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="grinnz@grinnz.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Dan Book
    </li>
    <li class="contributor"
      data-contrib-email="Daniel.Hedlund@eprize.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Daniel Hedlund
    </li>
    <li class="contributor"
      data-cpan-author="TRIZEN"
      data-contrib-email="trizen@protonmail.com"
    >
      <a href="https://metacpan.org/author/TRIZEN" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/06a9f734aaa9bbdbe0fdc72e8531a28a?d=identicon&amp;s=20" />
      Daniel Trizen
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="DWHEELER"
      data-contrib-email="david@justatheory.com"
    >
      <a href="https://metacpan.org/author/DWHEELER" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/de2fe609ec8ae522883ea1235f1e8792?d=identicon&amp;s=20" />
      David E. Wheeler
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="DAVIDRW"
      data-contrib-email="davidrw@cpan.org"
    >
      <a href="https://metacpan.org/author/DAVIDRW" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/3cc1f33aa6b6e688e30a3cae158455c5?d=identicon&amp;s=20" />
      DAVIDRW
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="dsteinbrunner@MountainBook-Pro.local"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      David Steinbrunner
    </li>
    <li class="contributor"
      data-contrib-email="dorian.taylor.lists@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Dorian Taylor
    </li>
    <li class="contributor"
      data-contrib-email="topaz.github@lt3.us"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Eric Wastl
    </li>
    <li class="contributor"
      data-cpan-author="SPROUT"
      data-contrib-email="sprout@cpan.org"
    >
      <a href="https://metacpan.org/author/SPROUT" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/30bd18493bc25ab8d09ea1050dd28f47?d=identicon&amp;s=20" />
      Father Chrysostomos
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="felipe@felipegasper.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Felipe Gasper
    </li>
    <li class="contributor"
      data-cpan-author="FWILES"
      data-contrib-email="FWILES@cpan.org"
    >
      <a href="https://metacpan.org/author/FWILES" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/22752839152ea331a0d5ed79c4627d73?d=identicon&amp;s=20" />
      FWILES
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="galenhuntington@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Galen Huntington
    </li>
    <li class="contributor"
      data-contrib-email="gpeters@deepsky.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Gavin Peters
    </li>
    <li class="contributor"
      data-contrib-email="Graeme.Thompson@mobilecohesion.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Graeme Thompson
    </li>
    <li class="contributor"
      data-cpan-author="HAARG"
      data-contrib-email="haarg@haarg.org"
    >
      <a href="https://metacpan.org/author/HAARG" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/5037faf9ba40cf736778820fe83fc2ae?d=identicon&amp;s=20" />
      Graham Knop
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="HAKONH"
      data-contrib-email="hakon.hagland@gmail.com"
    >
      <a href="https://metacpan.org/author/HAKONH" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/52ef20852e93826552ce3a6f4810edf1?d=identicon&amp;s=20" />
      Håkon Hægland
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="hfroehlich@co-de-co.de"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Hans-H. Froehlich
    </li>
    <li class="contributor"
      data-cpan-author="IANK"
      data-contrib-email="iank@cpan.org"
    >
      <a href="https://metacpan.org/author/IANK" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/f6807cda19a0995fe1aa32bea9d57d47?d=identicon&amp;s=20" />
      Ian Kilgore
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="waif@chaos2.org"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Jacob J
    </li>
    <li class="contributor"
      data-contrib-email="jakub.skory@atos.net"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Jakub Skory
    </li>
    <li class="contributor"
      data-contrib-email="jwilk@jwilk.net"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Jakub Wilk
    </li>
    <li class="contributor"
      data-cpan-author="RAZ"
      data-contrib-email="jraspass@gmail.com"
    >
      <a href="https://metacpan.org/author/RAZ" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/b9af2a54454e8f38c169be0c236670d6?d=identicon&amp;s=20" />
      James Raspass
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="shaohua@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      jefflee
    </li>
    <li class="contributor"
      data-contrib-email="jerome@broadbean.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Jerome Eteve
    </li>
    <li class="contributor"
      data-contrib-email="john9art@yahoo.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      john9art
    </li>
    <li class="contributor"
      data-contrib-email="jonasbn@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      jonasbn
    </li>
    <li class="contributor"
      data-cpan-author="SIMBABQUE"
      data-contrib-email="simbabque@cpan.org"
    >
      <a href="https://metacpan.org/author/SIMBABQUE" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/bcf66f65dcd36296129acbd96bfb0cb9?d=identicon&amp;s=20" />
      Julien Fiegehenn
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="ETHER"
      data-contrib-email="ether@cpan.org"
    >
      <a href="https://metacpan.org/author/ETHER" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/bdc5cd06679e732e262f6c1b450a0237?d=identicon&amp;s=20" />
      Karen Etheridge
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="DAXIM"
      data-contrib-email="daxim@cpan.org"
    >
      <a href="https://metacpan.org/author/DAXIM" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/5ce828f20abb195ef5d971205ee36c27?d=identicon&amp;s=20" />
      Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="MARKOV"
      data-contrib-email="mark@overmeer.net"
    >
      <a href="https://metacpan.org/author/MARKOV" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/18f0494979b7feef52388275080aaa34?d=identicon&amp;s=20" />
      Mark Overmeer
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="MARKSTOS"
      data-contrib-email="mark@stosberg.com"
    >
      <a href="https://metacpan.org/author/MARKSTOS" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/795623cd5c352aafe2d8f3d3bdd712ce?d=identicon&amp;s=20" />
      Mark Stosberg
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="FANY"
      data-contrib-email="fany@cpan.org"
    >
      <a href="https://metacpan.org/author/FANY" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/7bc0edaceda1cb0a5b56b844a5b406c2?d=identicon&amp;s=20" />
      Martin H. Sluka
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="MSCHAE"
      data-contrib-email="mschae@cpan.org"
    >
      <a href="https://metacpan.org/author/MSCHAE" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/83dd3b56f70d0c545dd5c8e8f5a2c45c?d=identicon&amp;s=20" />
      Matthew Chae
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="corion@corion.net"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Max Maischein
    </li>
    <li class="contributor"
      data-contrib-email="mschout@gkg.net"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Michael Schout
    </li>
    <li class="contributor"
      data-contrib-email="mspacek@redhat.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Michal Josef Špaček
    </li>
    <li class="contributor"
      data-cpan-author="MICKEY"
      data-contrib-email="mickey@cpan.org"
    >
      <a href="https://metacpan.org/author/MICKEY" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/6e4af72e094aaf421693eaabee533b78?d=identicon&amp;s=20" />
      Mickey Nasriachi
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="github@perlmeister.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Mike Schilli
    </li>
    <li class="contributor"
      data-contrib-email="murphy@genome.chop.edu"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      murphy
    </li>
    <li class="contributor"
      data-contrib-email="nanto@moon.email.ne.jp"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      nanto_vi, TOYAMA Nao
    </li>
    <li class="contributor"
      data-contrib-email="neilb@neilb.org"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Neil Bowers
    </li>
    <li class="contributor"
      data-contrib-email="olaf@wundersolutions.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Olaf Alders
    </li>
    <li class="contributor"
      data-cpan-author="DOLMEN"
      data-contrib-email="dolmen@cpan.org"
    >
      <a href="https://metacpan.org/author/DOLMEN" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/70d9b050bfe39350c234d710fadfcd39?d=identicon&amp;s=20" />
      Olivier Mengué
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="ondrej.hanak@ubs.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Ondrej Hanak
    </li>
    <li class="contributor"
      data-contrib-email="git@openstrike.co.uk"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      openstrike
    </li>
    <li class="contributor"
      data-cpan-author="RIBASUSHI"
      data-contrib-email="ribasushi@cpan.org"
    >
      <a href="https://metacpan.org/author/RIBASUSHI" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/6a096fdb29481fa7326735fada56c5cf?d=identicon&amp;s=20" />
      Peter Rabbitson
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="phrstbrn@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      phrstbrn
    </li>
    <li class="contributor"
      data-cpan-author="RRWO"
      data-contrib-email="robrwo+github@gmail.com rrwo@cpan.org"
    >
      <a href="https://metacpan.org/author/RRWO" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/4a5274bc5d690ee3d619f044778771a7?d=identicon&amp;s=20" />
      Robert Rothenberg
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="talby@trap.mtview.ca.us"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Robert Stone
    </li>
    <li class="contributor"
      data-contrib-email="rg@progtech.net"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Rolf Grossmann
    </li>
    <li class="contributor"
      data-contrib-email="ruff@ukrpost.net"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      ruff
    </li>
    <li class="contributor"
      data-contrib-email="sasao@yugen.org"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      sasao
    </li>
    <li class="contributor"
      data-contrib-email="swc@walkingclub.org.uk"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Saturday Walkers Club
    </li>
    <li class="contributor"
      data-cpan-author="SBURKE"
      data-contrib-email="sburke@cpan.org"
    >
      <a href="https://metacpan.org/author/SBURKE" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/4a3107dda4b30865c5d31a73b4b6fa9d?d=identicon&amp;s=20" />
      Sean M. Burke
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="SREZIC"
      data-contrib-email="slaven@rezic.de"
    >
      <a href="https://metacpan.org/author/SREZIC" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/5fa5a4e5ffdf883a1fcb1840c915d485?d=identicon&amp;s=20" />
      Slaven Rezic
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="SDEN"
      data-contrib-email="s.denaxas@gmail.com"
    >
      <a href="https://metacpan.org/author/SDEN" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/0e86dd37cd040734b27617500e4cd927?d=identicon&amp;s=20" />
      Spiros Denaxas
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="SteveHay@planit.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Steve Hay
    </li>
    <li class="contributor"
      data-cpan-author="MIYAGAWA"
      data-contrib-email="miyagawa@bulknews.net miyagawa@gmail.com"
    >
      <a href="https://metacpan.org/author/MIYAGAWA" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/2edd59ce5f91bec4b962bfce0a805211?d=identicon&amp;s=20" />
      Tatsuhiko Miyagawa
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="Th.J.v.Hoesel@THEMA-MEDIA.nl"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Theo van Hoesel
    </li>
    <li class="contributor"
      data-contrib-email="tigrankhachikyan@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Tigran
    </li>
    <li class="contributor"
      data-contrib-email="email@froggs.de"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Tobias Leich
    </li>
    <li class="contributor"
      data-contrib-email="todd@amiestreet.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Todd Lipcon
    </li>
    <li class="contributor"
      data-contrib-email="tokuhirom@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      tokuhirom
    </li>
    <li class="contributor"
      data-contrib-email="tom@eborcom.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Tom Hukins
    </li>
    <li class="contributor"
      data-cpan-author="FANF"
      data-contrib-email="dot@dotat.at"
    >
      <a href="https://metacpan.org/author/FANF" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/ea2e954edc91a607f9601c00551f6965?d=identicon&amp;s=20" />
      Tony Finch
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="ZIGOROU"
      data-contrib-email="zigorou@cpan.org"
    >
      <a href="https://metacpan.org/author/ZIGOROU" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/e0397174da14abbff9c6a718c916012b?d=identicon&amp;s=20" />
      Toru Yamaguchi
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="tzccinct@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      tzccinct
    </li>
    <li class="contributor"
    >
      uid39246 &lt;uid39246&gt;
    </li>
    <li class="contributor"
      data-cpan-author="SCOP"
      data-contrib-email="ville.skytta@iki.fi"
    >
      <a href="https://metacpan.org/author/SCOP" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/4623589f12ed201b060c2075fd9c0920?d=identicon&amp;s=20" />
      Ville Skyttä
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="vit.stradal@gooddata.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Vít Strádal
    </li>
    <li class="contributor"
      data-contrib-email="wstorey@maxmind.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      William Storey
    </li>
    <li class="contributor"
      data-contrib-email="tech@askold.net"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Yuri Karaban
    </li>
    <li class="contributor"
      data-cpan-author="ZMUGHAL"
      data-contrib-email="zaki.mughal@gmail.com"
    >
      <a href="https://metacpan.org/author/ZMUGHAL" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/82e7c54d334bfdfd32594d34583d32bc?d=identicon&amp;s=20" />
      Zakariyya Mughal
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="ZEFRAM"
      data-contrib-email="zefram@fysh.org"
    >
      <a href="https://metacpan.org/author/ZEFRAM" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/aab343bc3a4424dcb7f913920242f051?d=identicon&amp;s=20" />
      Zefram
      </a>
    </li>
  </ul>
</div>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/OALDERS" class="author-name">Olaf Alders 🐫</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/HTTP/Request.pm&#39;" class="">
<option
  selected
  value="OALDERS/HTTP-Message-6.45"
>6.45
  (OALDERS on 2023-09-27)</option>
<option
  
  value="OALDERS/HTTP-Message-6.44"
>6.44
  (OALDERS on 2022-10-26)</option>
<option
  
  value="SIMBABQUE/HTTP-Message-6.43"
>6.43
  (SIMBABQUE on 2022-10-22)</option>
<option
  
  value="OALDERS/HTTP-Message-6.42"
>6.42
  (OALDERS on 2022-10-18)</option>
<option
  
  value="OALDERS/HTTP-Message-6.41"
>6.41
  (OALDERS on 2022-10-12)</option>
<option
  
  value="OALDERS/HTTP-Message-6.40"
>6.40
  (OALDERS on 2022-10-12)</option>
<option
  
  value="SIMBABQUE/HTTP-Message-6.39"
>6.39
  (SIMBABQUE on 2022-10-08)</option>
<option
  
  value="OALDERS/HTTP-Message-6.38"
>6.38
  (OALDERS on 2022-10-06)</option>
<option
  
  value="OALDERS/HTTP-Message-6.37"
>6.37
  (OALDERS on 2022-06-14)</option>
<option
  
  value="OALDERS/HTTP-Message-6.36"
>6.36
  (OALDERS on 2022-01-05)</option>
<option
  
  value="OALDERS/HTTP-Message-6.35"
>6.35
  (OALDERS on 2021-11-11)</option>
<option
  
  value="OALDERS/HTTP-Message-6.34"
>6.34
  (OALDERS on 2021-11-08)</option>
<option
  
  value="OALDERS/HTTP-Message-6.33"
>6.33
  (OALDERS on 2021-06-28)</option>
<option
  
  value="OALDERS/HTTP-Message-6.32"
>6.32
  (OALDERS on 2021-05-18)</option>
<option
  
  value="OALDERS/HTTP-Message-6.31"
>6.31
  (OALDERS on 2021-05-11)</option>
<option
  
  value="OALDERS/HTTP-Message-6.30"
>6.30
  (OALDERS on 2021-05-10)</option>
<option
  
  value="OALDERS/HTTP-Message-6.29"
>6.29
  (OALDERS on 2021-03-06)</option>
<option
  
  value="OALDERS/HTTP-Message-6.28"
>6.28
  (OALDERS on 2021-02-19)</option>
<option
  
  value="OALDERS/HTTP-Message-6.27"
>6.27
  (OALDERS on 2021-01-05)</option>
<option
  
  value="OALDERS/HTTP-Message-6.26"
>6.26
  (OALDERS on 2020-09-10)</option>
<option
  
  value="ETHER/HTTP-Message-6.25"
>6.25
  (ETHER on 2020-06-28)</option>
<option
  
  value="OALDERS/HTTP-Message-6.24"
>6.24
  (OALDERS on 2020-05-11)</option>
<option
  
  value="OALDERS/HTTP-Message-6.23-TRIAL"
>6.23-TRIAL DEV
  (OALDERS on 2020-05-07)</option>
<option
  
  value="OALDERS/HTTP-Message-6.22"
>6.22
  (OALDERS on 2020-02-24)</option>
<option
  
  value="OALDERS/HTTP-Message-6.21-TRIAL"
>6.21-TRIAL DEV
  (OALDERS on 2020-02-19)</option>
<option
  
  value="OALDERS/HTTP-Message-6.20-TRIAL"
>6.20-TRIAL DEV
  (OALDERS on 2019-02-05)</option>
<option
  
  value="OALDERS/HTTP-Message-6.19-TRIAL"
>6.19-TRIAL DEV
  (OALDERS on 2019-01-16)</option>
<option
  
  value="OALDERS/HTTP-Message-6.18"
>6.18
  (OALDERS on 2018-06-05)</option>
<option
  
  value="OALDERS/HTTP-Message-6.16"
>6.16
  (OALDERS on 2018-03-28)</option>
<option
  
  value="OALDERS/HTTP-Message-6.15"
>6.15
  (OALDERS on 2018-03-13)</option>
<option
  
  value="OALDERS/HTTP-Message-6.14"
>6.14
  (OALDERS on 2017-12-20)</option>
<option
  
  value="OALDERS/HTTP-Message-6.13"
>6.13
  (OALDERS on 2017-06-20)</option>
<option
  
  value="OALDERS/HTTP-Message-6.12-TRIAL"
>6.12-TRIAL DEV
  (OALDERS on 2017-06-15)</option>
<option
  
  value="ETHER/HTTP-Message-6.11"
>6.11
  (ETHER on 2015-09-09)</option>
<option
  
  value="GAAS/HTTP-Message-6.06"
>6.06
  (GAAS on 2012-10-20)</option>
<optgroup label="BackPAN">'
<option
  
  value="OALDERS/HTTP-Message-6.17"
>6.17
  (OALDERS on 2018-06-05)</option>
<option
  
  value="ETHER/HTTP-Message-6.10"
>6.10
  (ETHER on 2015-07-19)</option>
<option
  
  value="ETHER/HTTP-Message-6.09"
>6.09
  (ETHER on 2015-07-19)</option>
<option
  
  value="ETHER/HTTP-Message-6.08"
>6.08
  (ETHER on 2015-07-10)</option>
<option
  
  value="ETHER/HTTP-Message-6.07"
>6.07
  (ETHER on 2015-07-09)</option>
<option
  
  value="GAAS/HTTP-Message-6.05"
>6.05
  (GAAS on 2012-10-20)</option>
<option
  
  value="GAAS/HTTP-Message-6.04"
>6.04
  (GAAS on 2012-09-30)</option>
<option
  
  value="GAAS/HTTP-Message-6.03"
>6.03
  (GAAS on 2012-02-16)</option>
<option
  
  value="GAAS/HTTP-Message-6.02"
>6.02
  (GAAS on 2011-03-20)</option>
<option
  
  value="GAAS/HTTP-Message-6.01"
>6.01
  (GAAS on 2011-03-07)</option>
<option
  
  value="GAAS/HTTP-Message-6.00"
>6.00
  (GAAS on 2011-02-27)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/HTTP-Message">HTTP-Message-6.45</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage four &#10;
          • 1358 direct dependents &#10;          • 8529 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="15"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="HTTP-Message-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="HTTP-Message-6.45">
    <input type="hidden" name="author" value="OALDERS">
    <input type="hidden" name="distribution" value="HTTP-Message">
    <button type="submit" class="favorite highlight"><span>66</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="./HTTP::Request.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>66</span> ++</a>
</div>
   / <span>HTTP::Request</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="./HTTP::Request.html#NAME">NAME</a></li>
  <li><a href="./HTTP::Request.html#VERSION">VERSION</a></li>
  <li><a href="./HTTP::Request.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="./HTTP::Request.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="./HTTP::Request.html#EXAMPLES">EXAMPLES</a>
    <ul>
      <li><a href="./HTTP::Request.html#Simple-POST">Simple POST</a></li>
      <li><a href="./HTTP::Request.html#Batch-POST-Request">Batch POST Request</a></li>
    </ul>
  </li>
  <li><a href="./HTTP::Request.html#SEE-ALSO">SEE ALSO</a></li>
  <li><a href="./HTTP::Request.html#AUTHOR">AUTHOR</a></li>
  <li><a href="./HTTP::Request.html#COPYRIGHT-AND-LICENSE">COPYRIGHT AND LICENSE</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>HTTP::Request - HTTP style request message</p>

<h1 id="VERSION">VERSION</h1>

<p>version 6.45</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code> require HTTP::Request;
 $request = HTTP::Request-&gt;new(GET =&gt; &#39;http://www.example.com/&#39;);</code></pre>

<p>and usually used like this:</p>

<pre><code> $ua = LWP::UserAgent-&gt;new;
 $response = $ua-&gt;request($request);</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p><code>HTTP::Request</code> is a class encapsulating HTTP style requests, consisting of a request line, some headers, and a content body. Note that the LWP library uses HTTP style requests even for non-HTTP protocols. Instances of this class are usually passed to the request() method of an <code>LWP::UserAgent</code> object.</p>

<p><code>HTTP::Request</code> is a subclass of <code>HTTP::Message</code> and therefore inherits its methods. The following additional methods are available:</p>

<dl>

<dt id="$r-=-HTTP::Request-&gt;new(-$method,-$uri-)"><a id="r---HTTP::Request--new---method---uri"></a>$r = HTTP::Request-&gt;new( $method, $uri )</dt>
<dd>

</dd>
<dt id="$r-=-HTTP::Request-&gt;new(-$method,-$uri,-$header-)"><a id="r---HTTP::Request--new---method---uri---header"></a>$r = HTTP::Request-&gt;new( $method, $uri, $header )</dt>
<dd>

</dd>
<dt id="$r-=-HTTP::Request-&gt;new(-$method,-$uri,-$header,-$content-)"><a id="r---HTTP::Request--new---method---uri---header---content"></a>$r = HTTP::Request-&gt;new( $method, $uri, $header, $content )</dt>
<dd>

<p>Constructs a new <code>HTTP::Request</code> object describing a request on the object $uri using method $method. The $method argument must be a string. The $uri argument can be either a string, or a reference to a <code>URI</code> object. The optional $header argument should be a reference to an <code>HTTP::Headers</code> object or a plain array reference of key/value pairs. The optional $content argument should be a string of bytes.</p>

</dd>
<dt id="$r-=-HTTP::Request-&gt;parse(-$str-)"><a id="r---HTTP::Request--parse---str"></a>$r = HTTP::Request-&gt;parse( $str )</dt>
<dd>

<p>This constructs a new request object by parsing the given string.</p>

</dd>
<dt id="$r-&gt;method"><a id="r--method"></a>$r-&gt;method</dt>
<dd>

</dd>
<dt id="$r-&gt;method(-$val-)"><a id="r--method---val"></a>$r-&gt;method( $val )</dt>
<dd>

<p>This is used to get/set the method attribute. The method should be a short string like &quot;GET&quot;, &quot;HEAD&quot;, &quot;PUT&quot;, &quot;PATCH&quot; or &quot;POST&quot;.</p>

</dd>
<dt id="$r-&gt;uri"><a id="r--uri"></a>$r-&gt;uri</dt>
<dd>

</dd>
<dt id="$r-&gt;uri(-$val-)"><a id="r--uri---val"></a>$r-&gt;uri( $val )</dt>
<dd>

<p>This is used to get/set the uri attribute. The $val can be a reference to a URI object or a plain string. If a string is given, then it should be parsable as an absolute URI.</p>

</dd>
<dt id="$r-&gt;header(-$field-)"><a id="r--header---field"></a>$r-&gt;header( $field )</dt>
<dd>

</dd>
<dt id="$r-&gt;header(-$field-=&gt;-$value-)"><a id="r--header---field----value"></a>$r-&gt;header( $field =&gt; $value )</dt>
<dd>

<p>This is used to get/set header values and it is inherited from <code>HTTP::Headers</code> via <code>HTTP::Message</code>. See <a href="https://metacpan.org/pod/HTTP::Headers">HTTP::Headers</a> for details and other similar methods that can be used to access the headers.</p>

</dd>
<dt id="$r-&gt;accept_decodable"><a id="r--accept_decodable"></a>$r-&gt;accept_decodable</dt>
<dd>

<p>This will set the <code>Accept-Encoding</code> header to the list of encodings that decoded_content() can decode.</p>

</dd>
<dt id="$r-&gt;content"><a id="r--content"></a>$r-&gt;content</dt>
<dd>

</dd>
<dt id="$r-&gt;content(-$bytes-)"><a id="r--content---bytes"></a>$r-&gt;content( $bytes )</dt>
<dd>

<p>This is used to get/set the content and it is inherited from the <code>HTTP::Message</code> base class. See <a href="https://metacpan.org/pod/HTTP::Message">HTTP::Message</a> for details and other methods that can be used to access the content.</p>

<p>Note that the content should be a string of bytes. Strings in perl can contain characters outside the range of a byte. The <code>Encode</code> module can be used to turn such strings into a string of bytes.</p>

</dd>
<dt id="$r-&gt;as_string"><a id="r--as_string"></a>$r-&gt;as_string</dt>
<dd>

</dd>
<dt id="$r-&gt;as_string(-$eol-)"><a id="r--as_string---eol"></a>$r-&gt;as_string( $eol )</dt>
<dd>

<p>Method returning a textual representation of the request.</p>

</dd>
</dl>

<h1 id="EXAMPLES">EXAMPLES</h1>

<p>Creating requests to be sent with <a href="./LWP::UserAgent.html">LWP::UserAgent</a> or others can be easy. Here are a few examples.</p>

<h2 id="Simple-POST"><a id="Simple"></a>Simple POST</h2>

<p>Here, we&#39;ll create a simple POST request that could be used to send JSON data to an endpoint.</p>

<pre><code>    #!/usr/bin/env perl

    use strict;
    use warnings;

    use HTTP::Request ();
    use JSON::MaybeXS qw(encode_json);

    my $url = &#39;https://www.example.com/api/user/123&#39;;
    my $header = [&#39;Content-Type&#39; =&gt; &#39;application/json; charset=UTF-8&#39;];
    my $data = {foo =&gt; &#39;bar&#39;, baz =&gt; &#39;quux&#39;};
    my $encoded_data = encode_json($data);

    my $r = HTTP::Request-&gt;new(&#39;POST&#39;, $url, $header, $encoded_data);
    # at this point, we could send it via LWP::UserAgent
    # my $ua = LWP::UserAgent-&gt;new();
    # my $res = $ua-&gt;request($r);</code></pre>

<h2 id="Batch-POST-Request"><a id="Batch"></a>Batch POST Request</h2>

<p>Some services, like Google, allow multiple requests to be sent in one batch. <a href="https://developers.google.com/drive/v3/web/batch">https://developers.google.com/drive/v3/web/batch</a> for example. Using the <code>add_part</code> method from <a href="https://metacpan.org/pod/HTTP::Message">HTTP::Message</a> makes this simple.</p>

<pre><code>    #!/usr/bin/env perl

    use strict;
    use warnings;

    use HTTP::Request ();
    use JSON::MaybeXS qw(encode_json);

    my $auth_token = &#39;auth_token&#39;;
    my $batch_url = &#39;https://www.googleapis.com/batch&#39;;
    my $url = &#39;https://www.googleapis.com/drive/v3/files/fileId/permissions?fields=id&#39;;
    my $url_no_email = &#39;https://www.googleapis.com/drive/v3/files/fileId/permissions?fields=id&amp;sendNotificationEmail=false&#39;;

    # generate a JSON post request for one of the batch entries
    my $req1 = build_json_request($url, {
        emailAddress =&gt; &#39;example@appsrocks.com&#39;,
        role =&gt; &quot;writer&quot;,
        type =&gt; &quot;user&quot;,
    });

    # generate a JSON post request for one of the batch entries
    my $req2 = build_json_request($url_no_email, {
        domain =&gt; &quot;appsrocks.com&quot;,
        role =&gt; &quot;reader&quot;,
        type =&gt; &quot;domain&quot;,
    });

    # generate a multipart request to send all of the other requests
    my $r = HTTP::Request-&gt;new(&#39;POST&#39;, $batch_url, [
        &#39;Accept-Encoding&#39; =&gt; &#39;gzip&#39;,
        # if we don&#39;t provide a boundary here, HTTP::Message will generate
        # one for us. We could use UUID::uuid() here if we wanted.
        &#39;Content-Type&#39; =&gt; &#39;multipart/mixed; boundary=END_OF_PART&#39;
    ]);

    # add the two POST requests to the main request
    $r-&gt;add_part($req1, $req2);
    # at this point, we could send it via LWP::UserAgent
    # my $ua = LWP::UserAgent-&gt;new();
    # my $res = $ua-&gt;request($r);
    exit();

    sub build_json_request {
        my ($url, $href) = @_;
        my $header = [&#39;Authorization&#39; =&gt; &quot;Bearer $auth_token&quot;, &#39;Content-Type&#39; =&gt; &#39;application/json; charset=UTF-8&#39;];
        return HTTP::Request-&gt;new(&#39;POST&#39;, $url, $header, encode_json($href));
    }</code></pre>

<h1 id="SEE-ALSO"><a id="SEE"></a>SEE ALSO</h1>

<p><a href="https://metacpan.org/pod/HTTP::Headers">HTTP::Headers</a>, <a href="https://metacpan.org/pod/HTTP::Message">HTTP::Message</a>, <a href="https://metacpan.org/pod/HTTP::Request::Common">HTTP::Request::Common</a>, <a href="./HTTP::Response.html">HTTP::Response</a></p>

<h1 id="AUTHOR">AUTHOR</h1>

<p>Gisle Aas &lt;gisle@activestate.com&gt;</p>

<h1 id="COPYRIGHT-AND-LICENSE"><a id="COPYRIGHT"></a>COPYRIGHT AND LICENSE</h1>

<p>This software is copyright (c) 1994 by Gisle Aas.</p>

<p>This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.</p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install HTTP::Message, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm HTTP::Message</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install HTTP::Message</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="./HTTP::Request.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
